/*
 * @Author: 13177709051 3506463075@qq.com
 * @Date: 2024-11-05 22:12:25
 * @LastEditors: 13177709051 3506463075@qq.com
 * @LastEditTime: 2024-11-14 11:59:44
 * @FilePath: /linux31/udp_echo_server/nocopy.hpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma once

class nocopy
{
public:
    nocopy(){}
    ~nocopy(){}
    nocopy(const nocopy&) = delete;
    const nocopy& operator=(const nocopy&) = delete;
};

// 定义一个 nocopy 的类, 通过 C++11 delete 关键字的特性, 阻止该类的拷贝构造和拷贝赋值.


